package org.sixtynine.stock.service;

import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.User;

/**
 * @author Thilan
 *
 */

public interface UserService {

	User findById(int id);

	void saveUser(User user);

	void deleteUser(int id);

	List<User> findUsers(String name);
	
	/**
	 * @param userName
	 * @return
	 */
	User findUserByUserName(String userName);
	
	List<User> searchUser(int userCategoryId);

	Page<User> searchUser(int userCategoryId ,GridPramDTO gridPramDTO);
	
	boolean isEmailExist(String email);
	
	boolean isUserExist(String userName);
	
}
